<?php

use Illuminate\Database\Seeder;
use App\Models\User;
use App\Models\RoleScope;


class UsersTableSeeder extends Seeder
{
    public function run()
    {
        if (!User::where('mobile', '13823119307')->exists()) {
            $userObj = new User();
            $userObj->setName('Carl');
            $userObj->setPassword('fox123');
            $userObj->setMobile('13823119307');
            $userObj->setSecret('ET7KDGUJUNQM37MB');
            $userObj->setRoleId(RoleScope::ROLE_SUPER);
            $userObj->save();
        }
    }
}